<template>
  <div class="welcome-container">
    <!-- 背景装饰 -->
    <div class="background-decoration"></div>
    
    <!-- 主标题 -->
    <h1 class="welcome-title">
      欢迎来到乐康养老管理系统
    </h1>
  </div>
</template>

<script setup>
import { onMounted } from 'vue';

onMounted(() => {
  const title = document.querySelector('.welcome-title');
  title.classList.add('animate');
});
</script>

<style scoped>
.welcome-container {
  min-height: 88vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0fdfa;
  position: relative;
  overflow: hidden;
  padding: 20px; /* 增加内边距防止文字溢出 */
}

/* 背景装饰效果 */
.background-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(0, 179, 155, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 70% 80%, rgba(0, 179, 155, 0.1) 0%, transparent 25%);
  z-index: 1;
}

/* 标题基础样式 */
.welcome-title {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  color: #008080;
  text-align: center;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  opacity: 0.7;
  line-height: 1.2;
}

</style>
